home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
sound
/
mtlabsnd.zip
/
READWAV.M
< prev
next >
Wrap
Text File
|
1993-04-26
|
379b
|
15 lines
function [ret] = readwav(filename)
% var = readwav(filename);
%
% Reads a Windows 3.1 WAV type file into the given variable.
% Assumes the variable is column-major and of a single column.
%
string = ['!sox ' filename '.wav ' filename '.mat'];
eval(string);
string = ['load ' filename '.mat'];
eval(string);
string = ['ret = sound;'];
eval(string);